package com.css.zfzx.sjcj.modules.hddcLava.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.common.spacedata.vo.SpaceDataParamsVo;
import com.css.zfzx.sjcj.modules.hddcLava.repository.entity.HddcLavaEntity;
import com.css.zfzx.sjcj.modules.hddcLava.viewobjects.HddcLavaQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zhangcong
 * @date 2020-11-27
 */

public interface HddcLavaService {

    public JSONObject queryHddcLavas(HddcLavaQueryParams queryParams, int curPage, int pageSize,String sort,String order);

    public HddcLavaEntity getHddcLava(String id);

    public HddcLavaEntity saveHddcLava(HddcLavaEntity hddcLava);
    Iterable<HddcLavaEntity> saveHddcLavaList(List<HddcLavaEntity> list);
    public HddcLavaEntity updateHddcLava(HddcLavaEntity hddcLava);

    public void deleteHddcLavas(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    void exportFile(HddcLavaQueryParams queryParams, HttpServletResponse response);

    String exportExcel(MultipartFile file, HttpServletResponse response);
    /**
     * 逻辑删除-根据项目id删除数据
     * @param projectIds
     */
    void deleteByProjectId(List<String> projectIds);

    /**
     * 逻辑删除-根据任务id删除数据
     * @param taskIds
     */
    void deleteByTaskId(List<String> taskIds);

    String judegeParams(String[] datas);

    void savehddcLavaServiceFromShpFiles(List<List<Object>> list, String provinceName, String cityName, String areaName,String savefilename);

    List<HddcLavaEntity> findAll();

    void deleteFileData(SpaceDataParamsVo paramsVo);
}
